package com.hf.work01;

/**
 * @author Lenovo-Healer
 */
public class TestDriver {
    public static void main(String[] args) {
        //创建汽车的对象
        Vehicle vehicle = new Vehicle("benz","black");
        System.out.println("品牌为"+vehicle.getBrand()+"颜色为"+vehicle.getColor()+"的汽车");
        System.out.println("===================================");
        //创建轿车的对象
        Car car = new Car("Honda","red",2);
        System.out.println("品牌为"+car.getBrand()+"颜色为"+car.getColor()+",载人数"+car.getLoader()+"的轿车");

    }
}
